package com.bf.electroplating.pojo.vo.exhaustGasWarningConfig;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 废气处理设施监控预警设置VO
 */
@Data
@Schema(description = "废气处理设施监控预警设置VO")
public class ExhaustGasWarningConfigVO {

    @Schema(description = "ID")
    private String id;

    @Schema(description = "企业ID")
    private String companyId;

    @Schema(description = "企业名称")
    private String companyName;

    @Schema(description = "园区ID")
    private String parkId;

    @Schema(description = "园区名称")
    private String parkName;

    @Schema(description = "设备ID")
    private String deviceId;

    @Schema(description = "设备名称")
    private String deviceName;

    @Schema(description = "设备编号")
    private String deviceCode;

    @Schema(description = "检测因子（如：SO2、NOx、PM10、VOCs等）")
    private String monitoringFactor;

    @Schema( description ="检测因子编码")
    @TableField("MONITORING_FACTOR_CODE")
    private String monitoringFactorCode;

    @Schema(description = "因子单位")
    private String factorUnit;

    @Schema(description = "上限阈值")
    private BigDecimal upperThreshold;

    @Schema(description = "下限阈值")
    private BigDecimal lowerThreshold;

    @Schema(description = "预警级别（1：一级预警，2：二级预警，3：三级预警）")
    private String warningLevel;

    @Schema(description = "预警级别名称")
    private String warningLevelName;

    @Schema(description = "是否启用（1：启用，0：停用）")
    private String isEnabled;

    @Schema(description = "是否启用名称")
    private String isEnabledName;

    @Schema(description = "监控频率（分钟）")
    private Integer monitoringFrequency;

    @Schema(description = "数据来源")
    private String dataSource;

    @Schema(description = "备注")
    private String remark;

    @Schema(description = "创建人")
    private String createBy;

    @Schema(description = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @Schema(description = "修改人")
    private String updateBy;

    @Schema(description = "修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    @Schema(description = "逻辑删除标志（0：未删除，1：已删除）")
    private String delFlag;
}
